﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PDX.ChangeTracking
{
    public class RelocatableChangeRecorder : IChangeRecorder
    {
        ChangeRecorderLocator locator;

        public RelocatableChangeRecorder(ChangeRecorderLocator locator)
        {
            this.locator = locator;
        }

        public void Record(Change change)
        {
            var recorder = locator.Recorder;
            if (recorder != null)
            {
                recorder.Record(change);
            }
        }
    }
}
